package org.edu.modules.base.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.edu.modules.base.entity.VeBaseSysRole;

import java.util.List;
import java.util.Map;

@Mapper
public abstract interface VeBaseSysRoleMapper extends BaseMapper<VeBaseSysRole> {
    public abstract VeBaseSysRole getModelByRoleText(String text);

    public abstract VeBaseSysRole getModelByRoleCode(String code);

    public abstract VeBaseSysRole getModelByIdAndText(Integer id, String text);

    public abstract void deleteSysRoleUserById(String userId);

    public abstract void addSysRoleUserById(String userId, String[] id);

    public abstract int addSysRole(VeBaseSysRole veBaseSysRole);

    public abstract int getSysRoleAllList(VeBaseSysRole veBaseSysRole);

    public abstract List<Map<String, Object>> getSysRolePageList(VeBaseSysRole veBaseSysRole);

}
